package org.github.manx98.jlibhac.tools.fssystem;

import org.github.manx98.jlibhac.fssystem.NcaContentType;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/6 14:24
 */
public enum CompressionType {
    None,
    Zeroed,
    Lz4,
    Unknown;
    public static CompressionType valueOf(byte value) {
        for (CompressionType type : values()) {
            if (type.ordinal() == value) {
                return type;
            }
        }
        throw new IllegalArgumentException("Unknown CompressionType: " + value);
    }
}
